import 'dart:convert';
/// endTime : "2024-01-11T05:47:36.709Z"
/// itemType : "string"
/// pageNumber : 1
/// pageSize : 10
/// startTime : "2024-01-11T05:47:36.709Z"

PurchaseListReq purchaseListReqFromJson(String str) => PurchaseListReq.fromJson(json.decode(str));
String purchaseListReqToJson(PurchaseListReq data) => json.encode(data.toJson());
class PurchaseListReq {
  PurchaseListReq({
      this.endTime, 
      this.itemType, 
      this.pageNumber = 1,
      this.pageSize = 10,
      this.startTime,
      this.settlementType = 0,
  });

  PurchaseListReq.fromJson(dynamic json) {
    endTime = json['endTime'];
    itemType = json['itemType'];
    pageNumber = json['pageNumber'];
    pageSize = json['pageSize'];
    settlementType = json['settlementType'];
    startTime = json['startTime'];
  }
  String? endTime;
  String? itemType;
  num? pageNumber;
  num? pageSize;
  num? settlementType;
  String? startTime;
PurchaseListReq copyWith({  String? endTime,
  String? itemType,
  num? pageNumber,
  num? pageSize,
  num? settlementType,
  String? startTime,
}) => PurchaseListReq(  endTime: endTime ?? this.endTime,
  itemType: itemType ?? this.itemType,
  pageNumber: pageNumber ?? this.pageNumber,
  pageSize: pageSize ?? this.pageSize,
  settlementType: settlementType ?? this.settlementType,
  startTime: startTime ?? this.startTime,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['endTime'] = endTime;
    map['itemType'] = itemType;
    map['pageNumber'] = pageNumber;
    map['pageSize'] = pageSize;
    map['settlementType'] = settlementType;
    map['startTime'] = startTime;
    return map;
  }

}